<?php

class Mediad2_Model_Version extends Mediad2_Model_Abstract
{
	/**
	 * const
	 */
	const ISUPDATE_NOTNEED 		= '0';		//不需要更新
	const ISUPDATE_ENFORCE		= '1';		//强制更新
	const ISUPDATE_RECOMMEND	= '2';		//推荐更新
	
	const TYPE_MAIN				= 1;		//主程序
	const TYPE_SOURCE			= 2;		//资源
	
	/**
	 * var
	 */
	protected $vid;
	protected $version;
	protected $desc;
	protected $fid;
	protected $type;
	protected $isupdate;
	protected $addtime;

	/**
     * @return the $fid
     */
    public function getFid ()
    {
        return $this->fid;
    }

	/**
     * @param field_type $fid
     */
    public function setFid ($fid)
    {
        $this->fid = $fid;
    }

	/**
     * @return the $type
     */
    public function getType ()
    {
        return $this->type;
    }

	/**
     * @param field_type $type
     */
    public function setType ($type)
    {
        $this->type = $type;
    }

	/**
     * @return the $vid
     */
    public function getVid ()
    {
        return $this->vid;
    }

	/**
     * @return the $version
     */
    public function getVersion ()
    {
        return $this->version;
    }

	/**
     * @return the $desc
     */
    public function getDesc ()
    {
        return $this->desc;
    }

	/**
     * @return the $isupdate
     */
    public function getIsupdate ()
    {
        return $this->isupdate;
    }

	/**
     * @return the $addtime
     */
    public function getAddtime ()
    {
        return $this->addtime;
    }

	/**
     * @param field_type $vid
     */
    public function setVid ($vid)
    {
        $this->vid = $vid;
    }

	/**
     * @param field_type $version
     */
    public function setVersion ($version)
    {
        $this->version = $version;
    }

	/**
     * @param field_type $desc
     */
    public function setDesc ($desc)
    {
        $this->desc = $desc;
    }

	/**
     * @param field_type $isupdate
     */
    public function setIsupdate ($isupdate)
    {
        $this->isupdate = $isupdate;
    }

	/**
     * @param field_type $addtime
     */
    public function setAddtime ($addtime)
    {
        $this->addtime = $addtime;
    }

}